package com.ruoyi.web.controller.team;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.team.domain.Goods;
import com.ruoyi.team.domain.Particulars;
import com.ruoyi.team.service.IGoodsService;
import com.ruoyi.team.service.IParticularsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletResponse;
import java.util.Arrays;
import java.util.List;

/**
 * 物品信息Controller
 *
 * @author 小马
 * @date 2022-11-27
 */
@RestController
@RequestMapping("/team/goodsmingxi")
public class ParticularsController extends BaseController
{
    @Autowired
    private IParticularsService particularsService;

    /**
     * 查询出入库明细
     */
    @PreAuthorize("@ss.hasPermi('team:goods:list')")
    @GetMapping("/mxlist/{id}")
    public AjaxResult list(@PathVariable Long id)
    {
        List<Particulars> particulars = particularsService.listAll(id);
        return AjaxResult.success(particulars);
    }

}
